package com.example.covid19.controller;


import com.example.covid19.common.Dto.editdto;
import com.example.covid19.common.lang.Result;
import com.example.covid19.mapper.UserMapper;
import com.example.covid19.mapper.UserfMapper;
import com.example.covid19.service.UserService;
import com.example.covid19.service.UserfService;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 * VIEW 前端控制器
 * </p>
 *
 * @author BaiZhengChun
 * @since 2022-10-31
 */
@RestController
@RequestMapping("/userf")
public class UserfController {
    private final UserfMapper userfMapper;
    private final UserfService userfService;
    private final UserService userService;
    private final UserMapper userMapper;


    public UserfController(UserfMapper userfMapper, UserfService userfService, UserService userService, UserMapper userMapper) {
        this.userfMapper = userfMapper;
        this.userfService = userfService;
        this.userService = userService;
        this.userMapper = userMapper;
    }
    @RequestMapping("/edit")
    public Result edit(@RequestBody editdto editdto){
       return userfService.edit(editdto);

    }

}
